/*
 * Copyright 2020-2021 redragon.dongbin
 *
 * This file is part of redragon-erp/赤龙ERP.

 * redragon-erp/赤龙ERP is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License, or
 * (at your option) any later version.

 * redragon-erp/赤龙ERP is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.

 * You should have received a copy of the GNU General Public License
 * along with redragon-erp/赤龙ERP.  If not, see <https://www.gnu.org/licenses/>.
 */
package com.erp.common.voucher.dao.data;

import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;

/**
 * @description
 * @date 2020年7月29日
 * @author dongbin
 * 
 */
public class DataBox {
    
    //获取凭证业务类型(根据实际的业务类型)
    public static String getVoucherTypeByBusinessType(String businessType) {
        String billType = "";
        
        if(businessType.equals("PO_IN")) {
            billType = "INPUT";
        }else if(businessType.equals("OTHER_IN")) {
            billType = "INPUT_OTHER";
        }else if(businessType.equals("PO_RETURN")) {
            billType = "INPUT_RETURN";
        }else if(businessType.equals("PROD_RETURN")) {
            billType = "INPUT_PROD_RETURN";
        }else if(businessType.equals("WIP_IN")) {
            billType = "INPUT_WIP";
        }else if(businessType.equals("SO_OUT")) {
            billType = "OUTPUT";
        }else if(businessType.equals("OTHER_OUT")) {
            billType = "OUTPUT_OTHER";
        }else if(businessType.equals("SO_RETURN")) {
            billType = "OUTPUT_RETURN";
        }else if(businessType.equals("PROD_GET")) {
            billType = "OUTPUT_PROD_GET";
        }else if(businessType.equals("WIP_OUT")) {
            billType = "OUTPUT_WIP";
        }else if(businessType.equals("PO_INVOICE")) {
            billType = "AP_INVOICE";
        }else if(businessType.equals("PRE_INVOICE")) {
            billType = "AP_INVOICE_PRE";
        }else if(businessType.equals("EXPENSE")) {
            billType = "EXPENSE";
        }else if(businessType.equals("LOAN")) {
            billType = "LOAN";
        }else if(businessType.equals("REPAY")) {
            billType = "REPAY";
        }else if(businessType.equals("SO_INVOICE")) {
            billType = "AR_INVOICE";
        }else if(businessType.equals("PRE_INVOICE")) {
            billType = "AR_INVOICE_PRE";
        }else if(businessType.equals("AP_DEBIT_MEMO")) {
            billType = "AP_INVOICE_DEBIT_MEMO";
        }else if(businessType.equals("AP_CREDIT_MEMO")) {
            billType = "AP_INVOICE_CREDIT_MEMO";
        }else if(businessType.equals("AR_DEBIT_MEMO")) {
            billType = "AR_INVOICE_DEBIT_MEMO";
        }else if(businessType.equals("AR_CREDIT_MEMO")) {
            billType = "AR_INVOICE_CREDIT_MEMO";
        }else if(businessType.equals("PAY")) {
            billType = "PAY";
        }else if(businessType.equals("RECEIPT")) {
            billType = "RECEIPT";
        }
        
        return billType;
    }

}
